<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libpng-1.6.37
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;10.&nbsp;Graphics and Font Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libmypaint.html" title=
          "libmypaint-1.5.0">Prev</a>
          <p>
            libmypaint-1.5.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libraw.html" title="libraw-0.19.5">Next</a>
          <p>
            libraw-0.19.5
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libpng" name="libpng"></a>libpng-1.6.37
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libpng
        </h2>
        <p>
          The <span class="application">libpng</span> package contains
          libraries used by other programs for reading and writing PNG files.
          The PNG format was designed as a replacement for GIF and, to a
          lesser extent, TIFF, with many improvements and extensions and lack
          of patent problems.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz">
                https://downloads.sourceforge.net/libpng/libpng-1.6.37.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 015e8e15db1eecde5f2eb9eb5b6e59e9
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 992 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 14 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU (using parallelism=4;
                add 0.7 SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Recommended patch to include animated png functionality in
                <span class="application">libpng</span> (required to use the
                system <span class="application">libpng</span> in
                <span class="application">Firefox</span>, <span class=
                "application">Seamonkey</span>, and <span class=
                "application">Thunderbird</span>): <a class="ulink" href=
                "https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-1.6.37-apng.patch.gz">
                https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-1.6.37-apng.patch.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Patch md5sum: f02073fd96816b184c79b297775e37dc
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libpng">http://wiki.linuxfromscratch.org/blfs/wiki/libpng</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libpng
        </h2>
        <p>
          If you want to patch libpng to support apng files, apply it here:
        </p>
        <pre class="userinput">
<kbd class=
"command">gzip -cd ../libpng-1.6.37-apng.patch.gz | patch -p1</kbd>
</pre>
        <p>
          Install <span class="application">libpng</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
mkdir -v /usr/share/doc/libpng-1.6.37 &amp;&amp;
cp -v README libpng-manual.txt /usr/share/doc/libpng-1.6.37</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">libpng-config (symlink), libpng16-config,
              pngfix and png-fix-itxt</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libpng.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/libpng16 and
              /usr/share/doc/libpng-1.6.37</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="pngfix" name="pngfix"></a><span class=
                    "term"><span class=
                    "command"><strong>pngfix</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    tests, optimizes and optionally fixes the zlib header in
                    PNG files. Optionally, when fixing, strips ancillary
                    chunks from the file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="png-fix-itxt" name="png-fix-itxt"></a><span class=
                    "term"><span class=
                    "command"><strong>png-fix-itxt</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    fixes PNG files that have an incorrect length field in
                    the iTXt chunks.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libpng-config" name=
                    "libpng-config"></a><span class="term"><span class=
                    "command"><strong>libpng-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a shell script that provides configuration information
                    for applications wanting to use <span class=
                    "application">libpng</span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libpng-lin" name="libpng-lin"></a><span class=
                    "term"><code class="filename">libpng.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contain routines used to create and manipulate PNG format
                    graphics files.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 20:23:35 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libmypaint.html" title=
          "libmypaint-1.5.0">Prev</a>
          <p>
            libmypaint-1.5.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libraw.html" title="libraw-0.19.5">Next</a>
          <p>
            libraw-0.19.5
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="graphlib.html" title=
          "Chapter&nbsp;10.&nbsp;Graphics and Font Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
